package sandbox;

import org.joda.time.Instant;

public class Decision {

	public Decision(TaskSet.Task taskToBeDone,
			WorkerSet.Worker workerWhoPerformTheTask,
			Instant whenTheWorkFinishes) {
		this.taskToBeDone = taskToBeDone;
		this.workerWhoPerformTheTask = workerWhoPerformTheTask;
		this.whenTheWorkFinishes = whenTheWorkFinishes;
	}

	public TaskSet.Task getTaskToBeDone() {
		return taskToBeDone;
	}

	public WorkerSet.Worker getWorkerWhoPerformTheTask() {
		return workerWhoPerformTheTask;
	}

	public Instant getWhenTheWorkFinishes() {
		return whenTheWorkFinishes;
	}

	public String toString() {
		return workerWhoPerformTheTask.toString() + "\t,\t"
				+ taskToBeDone.toString() + "\tthe work will be finished: "
				+ whenTheWorkFinishes.getMillis();
	};

	private TaskSet.Task taskToBeDone;
	private WorkerSet.Worker workerWhoPerformTheTask;
	private Instant whenTheWorkFinishes;
}